package src.model.repository;

import java.util.List;

import src.model.bll.MoviesBLL;
import src.model.entity.Movies;

public class MoviesRES {

	private final MoviesBLL moviesBLL;

	public MoviesRES() {
		this.moviesBLL = new MoviesBLL();
	}
	
	public boolean insert(Movies entity) {
		return moviesBLL.insertEntity(entity);
	}

	public boolean update(Movies entity) {
		return moviesBLL.updateEntity(entity);
	}

	public boolean delete(Movies entity) {
		return moviesBLL.deleteEntity(entity);
	}

	public List<Movies> getAll() {
		return moviesBLL.getAllEntity();
	}

	public Movies findById(long id) {
		return moviesBLL.findEntityById(id);
	}
}
